﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;

namespace LearningBubbles
{
    class MouseControl
    {
        private MouseState mouse1;

        public MouseState Mouse1
        {
            get { return mouse1; }
            set { mouse1 = value; }
        }

        public MouseControl()
        {
        }

        public void updateMouse()
        {
            mouse1 = Mouse.GetState();
            PlayerData.HandPosition[1,0] = new Vector2(mouse1.X,mouse1.Y);
            if (mouse1.LeftButton == ButtonState.Pressed)
            {
                PlayerData.HandGrabs[1,0] = true;
            }
            else if (mouse1.LeftButton == ButtonState.Released)
            {
                PlayerData.HandGrabs[1,0] = false;
            }

        }
    }
}
